integration of realm database in swift ui